<!-- <app-table-page  #st [tmp]="tmp" [process]="dataProcess"  [config]="config" >
    <ng-template #tmp>
      <div style="display:inline-block; position: relative;">
        <button nz-button nzType="primary">选择文件</button>
        <input type="file" (change)="change($event)" multiple="false" class="ml-sm" style="position: absolute;left: 0;top: 0;opacity: 0;width: 100%;height: 100%;"/>
      </div>
    </ng-template>
  </app-table-page> -->
  <div>
    <button nz-button nzType="primary" style="margin-right: 10px;" (click)="downloadFile()">下载模板</button>
    <nz-upload [(nzFileList)]="fileList" [nzBeforeUpload]="beforeUpload">
      <button nz-button>
        <i nz-icon nzType="upload"></i>
        点击上传
      </button>
    </nz-upload>

  </div>
  
  <nz-list *ngIf="showErr"  nzBordered style="height: 300px;overflow:auto;margin-top: 20px;" nzHeader="错误数据">
    <div>注意：报错的行数之前的数据已经导入成功，请修改报错数据再进行导入，已经导入的数据不能重复导入</div>
    <nz-list-item *ngFor="let item of ds">
      {{ item.rowNum }},{{item.msg}}
    </nz-list-item>
  </nz-list>
  
  <nz-form-item style="text-align: center;margin-top: 40px;">
    <div style="display: inline-block">
      <button nz-button nzType="primary" (click)="submit()">提交</button>
      <button nz-button (click)="resetForm()">取消</button>
    </div>
  </nz-form-item>
